<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="#preset/float_icon/">float icon 数据管理</a>
            </li>
        </ol>
    </div>
    <div class="topbar-right">
        <a href="#preset/float_icon/add/" class="btn btn-default btn-sm light fw600 ml10"><span class="fa fa-plus pr5"></span>新增Float icon数据</a>
        <div class="ml15 ib va-m" id="toggle_sidemenu_r">
            <a href="#" class="pl5"> <i class="fa fa-sign-in fs22 text-primary"></i>
            </a>
        </div>
    </div>
</header>

<section id="content" class="animated fadeIn">
    <div class="panel overflow" >
        <table class="table table-striped fs13" id="main-list">
            <thead>
                <tr class="bg-light">
                    <th>ID</th>
                    <th>名称</th>
                    <th>图像</th>
                    <th class="sortable" data-field="start_ts">生效时间</th>
                    <th class="sortable" data-field="end_ts">结束时间</th>
                    <th>命令</th>
                    <th>灰度策略</th>
                    <th class="sortable" data-field="updated_at">最后修改时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <% console.log(float_icons) %>
            <tbody class="admin-form">
                <% _.each(float_icons, function(float_icon){ %>
                    <tr data-id="<%= float_icon.id %>" >
                        <td><a href="#preset/float_icon/<%= float_icon.id %>/" ><%= float_icon.id %></a></td>
                        <td><%= float_icon.title %></td>
                        <td>
                            <img src="<%= float_icon.icon %>" height="30" max-width="30" />
                        </td>
                        <td><%= float_icon.start_ts %></td>
                        <td><%= float_icon.end_ts %></td>
                        <td><%= float_icon.cmd %></td>
                        <td><%= float_icon.abtest || '-'%></td>
                        <td><%= float_icon.updated_at %></td>
                        <td class="text-left">
                            <a class="glyphicons glyphicons-pencil" href="#preset/float_icon/<%= float_icon.id %>/"></a>
                            <a class="glyphicons glyphicons-remove_2 onClickDelete" href="javascript:;"></a>
                        </td>
                    </tr>
                <%
                }) %>
            </tbody>
        </table>
    </div>

    <div><div class="pull-left" id="page-tips"></div><div id="paginator"></div></div>
</section>
